<!DOCTYPE html>
<html lang="zh-hans">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.3.0">


  <link rel="apple-touch-icon" sizes="180x180" href="/wow/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/wow/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/wow/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/wow/images/logo.svg" color="#222">

<link rel="stylesheet" href="/wow/css/main.css">



<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.3/css/all.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.1.1/animate.min.css">

<script class="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"single-flower.gitee.io","root":"/wow/","images":"/wow/images","scheme":"Muse","version":"8.3.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":false,"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"بحث...","empty":"We didn't find any results for the search: ${query}","hits_time":"${hits} results found in ${time} ms","hits":"${hits} results found"}};
  </script>
<meta name="description" content="解释型和编译型语言的区别列举几个p2和p3的区别列举几个解释器的种类和特点PEP8规范常见编码有哪些解释型和编译型语言的区别:--解释型语言：python、JavaScript、PHP、Shell、MATLAB等 --解释型语言就是不用对源代码进行编译，通过解释器一边执行一边转换，需要哪些源代码就转换哪些，不生产可执行程序。 --转换的工具叫做解释器 总结：写代码的效率高，调bug比较容易，跨平台">
<meta property="og:type" content="article">
<meta property="og:title" content="语言相关1">
<meta property="og:url" content="https://single-flower.gitee.io/wow/2021/04/06/SD/%E9%9D%A2%E8%AF%95%E9%A2%98_%E8%AF%AD%E8%A8%80%E7%9B%B8%E5%85%B31/index.html">
<meta property="og:site_name" content="朵朵最可爱">
<meta property="og:description" content="解释型和编译型语言的区别列举几个p2和p3的区别列举几个解释器的种类和特点PEP8规范常见编码有哪些解释型和编译型语言的区别:--解释型语言：python、JavaScript、PHP、Shell、MATLAB等 --解释型语言就是不用对源代码进行编译，通过解释器一边执行一边转换，需要哪些源代码就转换哪些，不生产可执行程序。 --转换的工具叫做解释器 总结：写代码的效率高，调bug比较容易，跨平台">
<meta property="og:locale">
<meta property="article:published_time" content="2021-04-06T13:34:08.433Z">
<meta property="article:modified_time" content="2021-04-14T12:50:44.577Z">
<meta property="article:author" content="X y">
<meta property="article:tag" content="-GIT">
<meta name="twitter:card" content="summary">


<link rel="canonical" href="https://single-flower.gitee.io/wow/2021/04/06/SD/%E9%9D%A2%E8%AF%95%E9%A2%98_%E8%AF%AD%E8%A8%80%E7%9B%B8%E5%85%B31/">


<script class="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-hans'
  };
</script>
<title>语言相关1 | 朵朵最可爱</title>
  




  <noscript>
  <style>
  body { margin-top: 2rem; }

  .use-motion .menu-item,
  .use-motion .sidebar,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header {
    visibility: visible;
  }

  .use-motion .header,
  .use-motion .site-brand-container .toggle,
  .use-motion .footer { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle,
  .use-motion .custom-logo-image {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line {
    transform: scaleX(1);
  }

  .search-pop-overlay, .sidebar-nav { display: none; }
  .sidebar-panel { display: block; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="تشغيل شريط التصفح" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/wow/" class="brand" rel="start">
      <i class="logo-line"></i>
      <h1 class="site-title">朵朵最可爱</h1>
      <i class="logo-line"></i>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu">
        <li class="menu-item menu-item-home"><a href="/wow/" rel="section"><i class="fa fa-home fa-fw"></i>Home</a></li>
        <li class="menu-item menu-item-about"><a href="/wow/about/" rel="section"><i class="fa fa-user fa-fw"></i>معلومات</a></li>
        <li class="menu-item menu-item-tags"><a href="/wow/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>الوسوم</a></li>
        <li class="menu-item menu-item-categories"><a href="/wow/categories/" rel="section"><i class="fa fa-th fa-fw"></i>التصنيفات</a></li>
        <li class="menu-item menu-item-archives"><a href="/wow/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>الأرشيفات</a></li>
  </ul>
</nav>




</div>
        
  
  <div class="toggle sidebar-toggle" role="button">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>

  <aside class="sidebar">

    <div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          المحتويات
        </li>
        <li class="sidebar-nav-overview">
          عام
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
            <div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%A7%A3%E9%87%8A%E5%9E%8B%E5%92%8C%E7%BC%96%E8%AF%91%E5%9E%8B%E8%AF%AD%E8%A8%80%E7%9A%84%E5%8C%BA%E5%88%AB"><span class="nav-number">1.</span> <span class="nav-text">解释型和编译型语言的区别</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%88%97%E4%B8%BE%E5%87%A0%E4%B8%AAp2%E5%92%8Cp3%E7%9A%84%E5%8C%BA%E5%88%AB"><span class="nav-number">2.</span> <span class="nav-text">列举几个p2和p3的区别</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%88%97%E4%B8%BE%E5%87%A0%E4%B8%AA%E8%A7%A3%E9%87%8A%E5%99%A8%E7%9A%84%E7%A7%8D%E7%B1%BB%E5%92%8C%E7%89%B9%E7%82%B9"><span class="nav-number">3.</span> <span class="nav-text">列举几个解释器的种类和特点</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#PEP8%E8%A7%84%E8%8C%83"><span class="nav-number">4.</span> <span class="nav-text">PEP8规范</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%B8%B8%E8%A7%81%E7%BC%96%E7%A0%81%E6%9C%89%E5%93%AA%E4%BA%9B"><span class="nav-number">5.</span> <span class="nav-text">常见编码有哪些</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E8%A7%A3%E9%87%8A%E5%9E%8B%E5%92%8C%E7%BC%96%E8%AF%91%E5%9E%8B%E8%AF%AD%E8%A8%80%E7%9A%84%E5%8C%BA%E5%88%AB-1"><span class="nav-number"></span> <span class="nav-text">解释型和编译型语言的区别:</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%88%97%E4%B8%BE%E5%87%A0%E4%B8%AAp2%E5%92%8Cp3%E7%9A%84%E5%8C%BA%E5%88%AB-1"><span class="nav-number"></span> <span class="nav-text">列举几个p2和p3的区别:</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%88%97%E4%B8%BE%E5%87%A0%E4%B8%AA%E8%A7%A3%E9%87%8A%E5%99%A8%E7%9A%84%E7%A7%8D%E7%B1%BB%E5%92%8C%E7%89%B9%E7%82%B9%EF%BC%9A"><span class="nav-number"></span> <span class="nav-text">列举几个解释器的种类和特点：</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#PEP8%E8%A7%84%E8%8C%83%EF%BC%9A"><span class="nav-number"></span> <span class="nav-text">PEP8规范：</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%B8%B8%E8%A7%81%E7%BC%96%E7%A0%81%E6%9C%89%E5%93%AA%E4%BA%9B%EF%BC%9A"><span class="nav-number"></span> <span class="nav-text">常见编码有哪些：</span></a></div>
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">X y</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap site-overview-item animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/wow/archives/">
        
          <span class="site-state-item-count">23</span>
          <span class="site-state-item-name">المقالات</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
        <span class="site-state-item-count">1</span>
        <span class="site-state-item-name">التصنيفات</span>
      </div>
      <div class="site-state-item site-state-tags">
        <span class="site-state-item-count">1</span>
        <span class="site-state-item-name">الوسوم</span>
      </div>
  </nav>
</div>



        </div>
      </div>
    </div>
  </aside>
  <div class="sidebar-dimmer"></div>


    </header>

    
  <div class="back-to-top" role="button" aria-label="Back to top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-hans">
    <link itemprop="mainEntityOfPage" href="https://single-flower.gitee.io/wow/2021/04/06/SD/%E9%9D%A2%E8%AF%95%E9%A2%98_%E8%AF%AD%E8%A8%80%E7%9B%B8%E5%85%B31/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/wow/images/avatar.gif">
      <meta itemprop="name" content="X y">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="朵朵最可爱">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          语言相关1
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">نُشر في</span>

      <time title="أُنشأ: 2021-04-06 21:34:08" itemprop="dateCreated datePublished" datetime="2021-04-06T21:34:08+08:00">2021-04-06</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">عُدل في</span>
        <time title="عُدل: 2021-04-14 20:50:44" itemprop="dateModified" datetime="2021-04-14T20:50:44+08:00">2021-04-14</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">في</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/wow/categories/GIT/" itemprop="url" rel="index"><span itemprop="name">-GIT</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
        <h3 id="解释型和编译型语言的区别"><a href="#解释型和编译型语言的区别" class="headerlink" title="解释型和编译型语言的区别"></a>解释型和编译型语言的区别</h3><h3 id="列举几个p2和p3的区别"><a href="#列举几个p2和p3的区别" class="headerlink" title="列举几个p2和p3的区别"></a>列举几个p2和p3的区别</h3><h3 id="列举几个解释器的种类和特点"><a href="#列举几个解释器的种类和特点" class="headerlink" title="列举几个解释器的种类和特点"></a>列举几个解释器的种类和特点</h3><h3 id="PEP8规范"><a href="#PEP8规范" class="headerlink" title="PEP8规范"></a>PEP8规范</h3><h3 id="常见编码有哪些"><a href="#常见编码有哪些" class="headerlink" title="常见编码有哪些"></a>常见编码有哪些</h3><h2 id="解释型和编译型语言的区别-1"><a href="#解释型和编译型语言的区别-1" class="headerlink" title="解释型和编译型语言的区别:"></a>解释型和编译型语言的区别:</h2><pre><code>--解释型语言：python、JavaScript、PHP、Shell、MATLAB等
--解释型语言就是不用对源代码进行编译，通过解释器一边执行一边转换，需要哪些源代码就转换哪些，不生产可执行程序。
--转换的工具叫做解释器
总结：写代码的效率高，调bug比较容易，跨平台性很棒；但是执行效率不行。


--编译型语言：C、C++、Golang、Pascal(Delphi)、汇编等
--写完后需要打包和编译，打包后就省事了，随时都可使用
--它必须要求必须提前将所有的源代码一次性转换为二进制指令，生成一个可执行程序
--所使用的工具叫做编译器
--需在Linux下安装程序时需要GCC或G++
总结：执行效率高，但是调bug很麻烦</code></pre>
<h2 id="列举几个p2和p3的区别-1"><a href="#列举几个p2和p3的区别-1" class="headerlink" title="列举几个p2和p3的区别:"></a>列举几个p2和p3的区别:</h2><h2 id="列举几个解释器的种类和特点："><a href="#列举几个解释器的种类和特点：" class="headerlink" title="列举几个解释器的种类和特点："></a>列举几个解释器的种类和特点：</h2><pre><code>--CPython:c语言开发的，是使用最广的解释器，具有GIL全局解释器锁
--IPython:基于CPython的交互式解释器，功能与CPython无异</code></pre>
<h2 id="PEP8规范："><a href="#PEP8规范：" class="headerlink" title="PEP8规范："></a>PEP8规范：</h2><pre><code>1、每个 import 语句只导入一个模块，尽量避免一次导入多个模块
2、不要在行尾添加分号，也不要用分号将两条命令放在同一行

3、建议每行不超过 80 个字符，如果超过，建议使用小括号将多行内容隐式的连接起来，而不推荐使用反斜杠 \ 进行连接。
4、通常情况下，在运算符两侧、函数参数之间以及逗号两侧，都建议使用空格进行分隔。</code></pre>
<h2 id="常见编码有哪些："><a href="#常见编码有哪些：" class="headerlink" title="常见编码有哪些："></a>常见编码有哪些：</h2><pre><code>--ASCII编码：用来表示英文，它使用1个字节表示，其中第一位规定为0，其他7位存储数据，一共可以表示128个字符。

--拓展ASCII编码：用于表示更多的欧洲文字，用8个位存储数据，一共可以表示256个字符

--GBK/GB2312/GB18030：表示汉字。GBK/GB2312表示简体中文，GB18030表示繁体中文。

--Unicode编码：包含世界上所有的字符，是一个字符集。

--UTF-8：是Unicode字符的实现方式之一，它使用1-4个字符表示一个符号，根据不同的符号而变化字节长度。</code></pre>

    </div>

    
    
    

    <footer class="post-footer">
          <div class="post-tags">
              <a href="/wow/tags/GIT/" rel="tag"># -GIT</a>
          </div>

        

          <div class="post-nav">
            <div class="post-nav-item">
                <a href="/wow/2021/02/18/zy/docker%E6%93%8D%E4%BD%9C%E5%AE%B9%E5%99%A8%EF%BC%8C%E9%95%9C%E5%83%8F/" rel="prev" title="docker操作容器，镜像">
                  <i class="fa fa-chevron-left"></i> docker操作容器，镜像
                </a>
            </div>
            <div class="post-nav-item">
                <a href="/wow/2021/04/08/SD/%E9%9D%A2%E8%AF%95%E9%A2%98_%E8%AF%AD%E6%B3%95%E5%9F%BA%E7%A1%802/" rel="next" title="语法基础2">
                  语法基础2 <i class="fa fa-chevron-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>







<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      const activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      const commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>
</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">


<div class="copyright">
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">X y</span>
</div>
  <div class="powered-by">تطبيق الموقع <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/muse/" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a>
  </div>

    </div>
  </footer>

  
  <script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
<script src="/wow/js/utils.js"></script><script src="/wow/js/motion.js"></script><script src="/wow/js/schemes/muse.js"></script><script src="/wow/js/next-boot.js"></script>

  






  





</body>
</html>
